package com.chujian.client.wx;

import com.chujian.framework.constant.ChujianAppConst;
import com.chujian.framework.core.tsdata.Result;
import com.chujian.wx.entity.WxMpUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = ChujianAppConst.WX_SERVICES_NAME, contextId = "WxMpUserClient")
public interface WxMpUserClient {

    /**
     * 通过unionId获取公众号用户
     *
     * @param unionId
     * @return
     */
    @GetMapping("/wxMpUser/getMpUserByUnionId")
    Result<WxMpUser> getMpUserByUnionId(@RequestParam("unionId") String unionId);

}
